package factory;

import base.Item;

public class Job extends Item {
	
	private int index;
	
	private double processingTime;
    
    private boolean finish=false;

    public Job(String name, double processingTime) {
    	this.setName(name);
    	this.processingTime=processingTime;
    }

    public void setProcessingTime(double time) {
        this.processingTime=time;
    }

    public double getProcessingTime() {
        return processingTime;
    }

	public int getJobIndex() {
		return index;
	}

	public void setJobIndex(int index) {
		this.index = index;
	}

	public boolean isFinish() {
		return finish;
	}

	public void setFinish(boolean finish) {
		this.finish = finish;
	}
}